# !/usr/bin python3
# encoding: utf-8 -*-
# @file     : after_sale_apis.py
# @author   : 沙陌 Matongxue_2
# @Time     : 2024/1/2 21:57
# @Copyright: 北京码同学


from api.base_api import BaseBuyerApi


class ReturnGoodsApi(BaseBuyerApi):

    # 接口的基本信息，统一封装在init函数中
    def __init__(self,order_sn,sku_id):
        super().__init__()
        self.url = f'{self.host}/after-sales/apply/return/goods'
        self.method = 'post'
        self.data = {
            "service_type":"RETURN_GOODS",
            "return_num":1,
            "ship_addr":"昌平区霍营地铁站",
            "ship_name":"沙漠1122",
            "ship_mobile":"13453361393",
            "account_type":"BANKTRANSFER",
            "bank_name":"北京银行",
            "bank_deposit_name":"北京开户行",
            "bank_account_name":"沙陌户名",
            "bank_account_number":"278782372366363",
            "reason":"商品降价",
            "problem_desc":"没啥描述，就是不想要了",
            "order_sn":order_sn,
            "sku_id":sku_id,
            "apply_vouchers":"",
            "region":4136
        }